package cn.tedu.lucky.draw.server.repository;

import cn.tedu.lucky.draw.server.protrocol.po.Rule;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;

@Repository
public interface RuleRepository extends JpaRepository<Rule, Long> {
    List<Rule> findByStatusEquals(Integer status);

    List<Rule> findByIdNotInAndStatusEquals(ArrayList<Long> ecludedIds, Integer status);

}
